# 接受socket
from socket import socket, AF_INET, SOCK_STREAM
def main():
    # 创建套接字对象默认使用IPV4和TCP协议

    client = socket(family=AF_INET, type=SOCK_STREAM)
    client.connect(('192.168.1.100', 6788))
    # 3.从服务器接收数据
    print(client.recv(1024).decode('utf-8'))
    client.close()


if __name__ == "__main__":
    main()